import request from '/@/utils/request';

/**
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export function requestPost(url: string, params: object) {
	return request({
		url: url,
		method: 'post',
		params,
	});
}

/**
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export function requestGet(url: string, params: object) {
	return request({
		url: url,
		method: 'get',
		data: params,
	});
}
